package vip.zhenzicheng.design_patterns.memento.white_box;

/**
 * 备忘录角色类
 *
 * @author zhenzicheng
 * @date 2022-05-27 14:39
 */
public class RoleStateMemento {

  private int vit; //生命力
  private int atk; //攻击力
  private int def; //防御力

  public RoleStateMemento(int vit, int atk, int def) {
    this.vit = vit;
    this.atk = atk;
    this.def = def;
  }

  public RoleStateMemento() {
  }

  public int getVit() {
    return vit;
  }

  public void setVit(int vit) {
    this.vit = vit;
  }

  public int getAtk() {
    return atk;
  }

  public void setAtk(int atk) {
    this.atk = atk;
  }

  public int getDef() {
    return def;
  }

  public void setDef(int def) {
    this.def = def;
  }
}
